﻿@model ImageWeb.Models.RegisterModel
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/bundles/jquery")
    <link rel="stylesheet" href="/Content/Control.css" />
    <title></title>
</head>
<body>
    <div class="registerform">
        <div class="form-horizontal">
            <h2 class="text-primary">注册</h2>
            @using (Html.BeginForm())
            {
                @Html.AntiForgeryToken()
                @Html.ValidationSummary(true, "", new { @class = "text-danger" })
                <div class="form-group form-group-lg">
                    <div class="col-md-12">
                        <input class="form-control" placeholder="员工编号" data-val="true" data-val-length="工号长度为1-10个字符" data-val-length-max="10" data-val-length-min="1" data-val-required="必须输入" id="UserNum" name="UserNum" type="text" value="">
                        @Html.ValidationMessageFor(model => model.UserNum, "", new { @class = "text-danger" })
                    </div>
                </div>
                <div class="form-group">

                    <div class="col-md-12">
                        <input class="form-control" placeholder="密码" data-val="true" data-val-length-max="20" data-val-length-min="6" data-val-required="必须输入密码" id="Password" name="Password" type="password" value="">
                        @Html.ValidationMessageFor(model => model.Password, "", new { @class = "text-danger" })
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-12">
                        <input class="form-control" placeholder="确认密码" data-val="true" data-val-length-max="20" data-val-length-min="1" data-val-required="必须输入" id="ConfirmPassword" name="ConfirmPassword" type="password" value="">
                        @Html.ValidationMessageFor(model => model.ConfirmPassword, "", new { @class = "text-danger" })
                    </div>
                </div>
                <div class="form-group form-group-lg">
                    <div class="col-md-12">
                        <input class="form-control" placeholder="邮箱" data-val="true" data-val-required="必须输入" id="UserNum" name="Email" type="email" value="">
                        @Html.ValidationMessageFor(model => model.Email, "", new { @class = "text-danger" })
                    </div>
                </div>
                <div class="form-group form-group-lg">
                    <div class="col-md-12">
                        <input class="form-control" placeholder="姓名" data-val="true" data-val-required="必须输入" id="Name" name="Name" type="text" value="">
                        @Html.ValidationMessageFor(model => model.Name, "", new { @class = "text-danger" })
                    </div>
                </div>
                <div class="form-group form-group-lg">
                    <div class="col-md-12">
                        <input class="form-control" placeholder="基地(保定，天津，衡水，蠡县，海南)，默认为保定" data-val="true" data-val-required="必须输入" id="Location" name="Location" type="text" value="">
                        @Html.ValidationMessageFor(model => model.Location, "", new { @class = "text-danger" })
                    </div>
                </div>
                <div class="form-group form-group-lg" id="div_valiCode">
                    <input type="text" style="display:none" value="" name="cnt" id="cnt" />
                    <input class="form-control" id="valicode" name="valicode" type="text" value="" style="margin-left: 14px;width:380px" placeholder="验证码">
                    @Html.ValidationMessageFor(model => model.valicode, "", new { @class = "text-danger" })
                    <p></p>
                    <img id="img_valiCode" style="cursor: pointer; margin-left: 14px" src="CetValidateCode" alt="验证码" />
                </div>
                <div class="form-group form-group-lg">
                    <input type="submit" id="register" value="注册" class="btn btn-default pull-right" />
                </div>
            }
        </div>

    </div>
</body>
</html>
@Scripts.Render("~/bundles/bootstrap")
<script type="text/javascript" src="~/Plug/layui/layui.all.js"></script>
<script src="/Scripts/CookieOperation.js"></script>
<script>
    $(function () {        
        $("#img_valiCode").bind("click", function () {
            this.src = "CetValidateCode?time=" + (new Date()).getTime();
        });
    });
</script>